import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'
import Lottery from './views/Lottery.vue'
import Detail from './views/Detail.vue'
Vue.use(Router)

export default new Router({
    routes: [
        {
            path: '/',
            name: 'home',
            component: Home
        },
        {
            path: '/lottery',
            name: 'lottery',
            component: Lottery
        },
        {
            path: '/detail/:id',
            name: 'detail',
            component: Detail
        }
    ]
})
